<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
	<head><title>{#$title_noun#} 申請試用會員</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="zh_TW" />

<script  type="text/javascript" src="/cms/js/cms.1.1.min.js"></script>
<script type="text/javascript" src="/cms/js/tag/jquery.tokeninput.js"></script>
<link media="all" href="/cms/css/cms.min.css" type="text/css" rel="stylesheet" /> 
<link rel="stylesheet" type="text/css" href="/cms/css/tag/token-input.css" />
</head>
<body> 
{#include file="$navigation"#}
<div style="float:right;" id="login"></div>

<h1><span id="parent_key_label"></span>{#$title_noun#} 申請試用會員{#$clear_search_link#}</h1>
 
<form name="list" method="post" action="{#$self_url#}" >	
<div class='tableWrapper' style="width:100%;margin:0;padding:0;">
  <div class='tableHeader' >
   
  <!--standard hidden value-->
  <input type="hidden" name="oid" value="{#$oid#}">
  <input name="action" value="list" type="hidden"><input name="subaction" type="hidden">
  
	<ul class="tableActions">
	
	<li><li> <label><input type="checkbox" name="dummy" value="" onclick="javascript:CMS.checkbox.selectall(this, document.forms['list'].elements['mselected_id[]'])" />全選</label> </li></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 新增 " onclick="javascript:window.location.href='{#$self_url#}/showadd/{#$oid#}'" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" Search " onclick="javascript:window.location.href='{#$self_url#}/showsearch/{#$oid#}'" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 批量更新 " onclick="form.action.value='mupdate'; form.submit();" type="button"></li><li><input type="button" onclick="form.action.value='send_mail'; form.submit();" value="發送郵件" name="Submit" onmouseout="this.className='psbutton'" onmouseover="this.className='psbuttonhover'" class="psbutton">

<a href="javascript:window.location.href='{#$self_url#}/update_score/{#$oid#}'">Update Score</a>

<input type="button" onclick="form.action.value='update_accept_period'; form.submit();" value=" 接受期限 (3天) " name="Submit" onmouseout="this.className='psbutton'" onmouseover="this.className='psbuttonhover'" class="psbutton">

<input type="button" onclick="form.action.value='add_participant'; form.submit();" value="扮參加者" name="Submit" onmouseout="this.className='psbutton'" onmouseover="this.className='psbuttonhover'" class="psbutton">

<input type="button" onclick="form.action.value='user_accept_invite'; form.submit();" value="代用戶接受邀請" name="Submit" onmouseout="this.className='psbutton'" onmouseover="this.className='psbuttonhover'" class="psbutton">

</li>
	</ul>
  <div align="right">{#$pagelist[2]#}</div>
  
  <div class='clear'></div>
  <div class='corner left'></div>
  <div class='corner right'></div>
  </div>

<table border="0" cellspacing='0'  class="list_table">
<thead><tr>
	<th>id</th>
<th>會員編號</th>
<th>application_status</th>
<th>用戶回答</th>
<th>score{#$list_control.sort_score#}</th>
<th>已發電郵</th>
<th>application_history</th>
<th>accept_endtime</th>
<th>通過審批</th>
<th>Action</th>
</tr></thead>
{#foreach from=$list_data item=list_datum#}
<tr>
	<td style="text-align:center">{#$list_datum.id#}<input name="id[]" value="{#$list_datum.id#}" type="hidden"><input name="mselected_id[]" value="{#$list_datum.id#}" type="checkbox"></td>
<td>{#$list_datum.mid#}</td>
<td>{#$list_datum.application_status#}</td>
<td>{#$list_datum.message_json#}</td>
<td>{#$list_datum.score#}</td>
<td>{#$list_datum.email_sent#}</td>
<td>{#$list_datum.application_history#}</td>
<td>{#$list_datum.accept_endtime#}</td>
<td>{#$list_datum.is_approved#}</td>
<td style="text-align:center;"><a href="{#$self_url#}/edit/{#$list_datum.oid#}/{#$list_datum.id#}"><img src="/cms/images/ico/edit.gif"></a><a href="javascript:window.location.href='{#$self_url#}/del/{#$list_datum.oid#}/{#$list_datum.id#}'"><img src="/cms/images/ico/delete.gif"></a><script type="text/javascript">
function send_email(){
	if (confirm('是否確認發送電郵?(請檢查是否已發送)')){
	    window.location.href='/cms/builder/product/application.php/send_mail/{#$list_datum.oid#}/{#$list_datum.id#}';
	}else{
		return false;
	}
}
</script>

<a onclick="send_email()" style="color:blue;text-decoration:underline;cursor:pointer;">發送電郵</a>

<!--a href="/cms/cc.php/list/{#$list_datum.id#}" onclick="window.open('/cms/cc.php/list/{#$list_datum.id#}', 'childwindow');return false;">action</a-->
</td>
</tr>
{#/foreach#} 
<tfoot><tr>
	<th>id</th>
<th>會員編號</th>
<th>application_status</th>
<th>用戶回答</th>
<th>score{#$list_control.sort_score#}</th>
<th>已發電郵</th>
<th>application_history</th>
<th>accept_endtime</th>
<th>通過審批</th>
<th>Action</th>
</tr></tfoot>

</table>
<input type="hidden" name="oid" value="{#$oid#}"> 
</form> 
<div style="float:left">{#$pagelist[0]#}  </div>
<div style="float:right">{#$pagelist[2]#} </div>
<div style="clear:both;"></div>

<!--{#$user_permission#}-->
<script type="text/javascript">
$(document).ready(function() {
  $('table tr:even').addClass('even');
  $('table tr:even .inner tr').addClass('even');
  $('table tr:odd .inner tr').addClass('odd');
  
});

$(document).ready(function() {
CMS.image_uplaod.thumbnail_limit_size();
});

</script>
<!--POSTRUNJS-->
</body></html>
